package com.dom.domweb.common;

import lombok.Data;

import java.util.List;

/**
 * @Description 兼容layui的table数据返回分页
 * @Author xllei
 * @Date 2018/11/12 下午5:50
 * @Version 1.0
 **/
@Data
public class TabPager<T> {
    private int code;
    private String msg;
    private int count;
    private List<T> data;

    public TabPager(List<T> records, int count) {
        code = 0;
        this.data = records;
        this.count = count;
    }
}
